package com.rd.student.dashuju.sunwenzhuo.Test2;


import java.util.ArrayList;
import java.util.Random;

public class Test4 {
    public static void main(String[] args) {
        int max = 100;
        int min = 1;
        ArrayList arrayList1 = new ArrayList();//存储1-100
        ArrayList arrayList2 = new ArrayList();//存储大于等于10
        for (int i = 0; i < 10; i++) {
            Random random = new Random();
            int k = random.nextInt(max + (max - min));
            arrayList1.add(k);

            if (k>=10){
                arrayList2.add(k);
            }
        }

        System.out.println(arrayList1);
        System.out.println(arrayList2);
    }


}
